import request from '@/utils/request'
import user from '../store/modules/user';

export function login(username,password) {
  const form = new FormData();
  form.append("username", username); 
  form.append("password", password); 
  return request.post('/manager/login',form)
}

export function logout() {
  return request({
    url: '/login/logout',
    method: 'post'
  })
}

export function getUserInfo(username) {
  return request({
    url: '/manager/u/'+username,
    method: 'get',
  })
}

